<template>
  <div >
    <div style="text-align:left">
      患者信息：
      <el-tag>姓名:{{patient.real_name}}</el-tag>
      <el-tag>病历号:{{patient.case_number}}</el-tag>
      <el-tag>年龄:{{patient.age}}</el-tag>
      <el-tag>性别:{{patient.gender}}</el-tag>
    </div>
    <el-divider></el-divider>
    <div style="font-size:20px;text-align:left">
      <i class="el-icon-document-checked">处置项目</i>
    </div>
    <el-divider></el-divider>

    <el-table :data="check_patient_table" style="width:80%;margin-top:5px" highlight-current-row @current-change="checkSelectionChange">
      <el-table-column type="index" width="50"></el-table-column>
      <el-table-column prop="item_code" label="处置编码"></el-table-column>
      <el-table-column prop="item_name" label="处置名称"></el-table-column>
      <el-table-column prop="item_format" label="处置规格"></el-table-column>
      <el-table-column prop="item_price" label="单价"></el-table-column>
      <el-table-column prop="item_type" label="费用分类"></el-table-column>
    </el-table>
    <div align="left">
      <el-tag>已选择的处置项目：{{ checkPatient.item_name }}</el-tag>
    </div>

    <el-descriptions title="确认处置科室和处置医生" :column="2" border style="margin-top:20px;width:50%">
      <el-descriptions-item label="科室选择">
        <el-select v-model="deptment_id" placeholder="选择科室" @change="deptChange">
          <el-option v-for="item in check_dept" :key="item.id" :label="item.dept_name" :value="item.id">
          </el-option>
        </el-select>
      </el-descriptions-item>
      <el-descriptions-item label="医生选择">
        <el-select v-model="employee_id" placeholder="选择医生">
          <el-option v-for="item in check_employee" :key="item.id" :label="item.realname" :value="item.id">
          </el-option>
        </el-select>
      </el-descriptions-item>
    </el-descriptions>
    <div style="text-align:left;margin-top:20px">
      <el-button type="primary" @click="addCheckPatient()">开始处置</el-button>
      <el-button type="primary" @click="clearCheckPatient()">重置医生</el-button>
    </div>
  </div>
</template>
<script>
import {isNullMessage} from "../../util/util";
import qs from 'qs';
export default {
  data() {
    return {
      checkPatient: {
        disposal_employee_id: '',
        id: '',
        item_name: ''
      },
      employee_id: '',//选择医生id
      check_employee: [],//处置科室医生列表
      deptment_id: '',//选择科室id
      check_dept: [],//处置科室列表
      check_patient_table: [],//患者的处置项目列表
      patient: {},//患者信息

    }
  },
  methods: {},
  mounted() {
  }
}
</script>
